import Vue from "vue"
import moment from 'moment'
/**
 * 设置全局过滤器
 */
const filterList={
    dateFormart:function(date,pattern="YYYY-MM-DD HH:mm:ss"){
        return moment(date).format(pattern)
    },

}

for(let key in filterList){
    Vue.filter(key,filterList[key])
}